//
//  ArrayMainTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/3/25.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "ArrayMainTableViewCell.h"

@implementation ArrayMainTableViewCell

-(void)dealloc
{
    [super dealloc];
    [_timeLab release];
    [_countLab release];
    [_titleLab release];
    [_leftImgView release];
    [_midImgView release];
    [_rightImgView release];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.timeLab = [[UILabel alloc] init];
        //self.timeLab.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.timeLab];
        self.timeLab.font = [UIFont systemFontOfSize:10];
        self.timeLab.textColor = [UIColor grayColor];
        [_timeLab release];
        
        self.countLab = [[UILabel alloc] init];
        //self.countLab.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.countLab];
        self.countLab.font = [UIFont systemFontOfSize:10];
        self.countLab.textColor = [UIColor grayColor];
        [_countLab release];
        
        self.titleLab = [[UILabel alloc]init];
        self.titleLab.numberOfLines = 0;
        self.titleLab.font = [UIFont systemFontOfSize:16];
        //self.titleLab.backgroundColor = [UIColor redColor];
        self.titleLab.textColor = [UIColor blackColor];
        [self.contentView addSubview:self.titleLab];
        [_titleLab release];
        
        
        // 图片数组初始化
        self.leftImgView = [[UIImageView alloc] init];
        //self.leftImgView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.leftImgView];
        [_leftImgView release];
        
        self.midImgView = [[UIImageView alloc] init];
        //self.midImgView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.midImgView];
        [_midImgView release];
        
        self.rightImgView = [[UIImageView alloc] init];
        //self.rightImgView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.rightImgView];
        [_rightImgView release];
        
           }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.countLab.frame = CGRectMake(10, 60, 50, 20);
    self.timeLab.frame = CGRectMake(10 + 90 + 10 + 150, 60, 90, 20);
    self.titleLab.frame = CGRectMake(10, 10, 300, 20);
    self.leftImgView.frame = CGRectMake(10, 40, 110, 70);
    self.midImgView.frame = CGRectMake(130, 40, 110, 70);
    self.rightImgView.frame = CGRectMake(250, 40, 110, 70);

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
